﻿@model Developer.Entity.User
@{
    Layout = "~/Areas/Admin/Views/Shared/_PopLayout.cshtml";
}
<article class="page-container">
    <form action="/admin/user/changepassword/?Id=@Model.Id" method="post" class="form form-horizontal" id="form-change-password">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>账户：</label>
            <div class="formControls col-xs-9 col-sm-10"> @Model.Account </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>新密码：</label>
            <div class="formControls col-xs-9 col-sm-10">
                <input type="password" class="input-text" autocomplete="off" placeholder="不修改请留空" name="newPassword" id="newPassword">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>确认密码：</label>
            <div class="formControls col-xs-9 col-sm-10">
                <input type="password" class="input-text" autocomplete="off" placeholder="不修改请留空" name="newPassword2" id="newPassword2">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-8 col-xs-offset-4 col-sm-offset-4">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});

	$("#form-change-password").validate({
		rules:{
		    newPassword: {
			    required: true
			},
		    newPassword2: {
			    required: true,
			    equalTo: "#newPassword"
			}
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid"

	});
});
</script> 